//
//  KKGoodsItemList.m
//  FreightAssistant
//
//  Created by leo on 15/11/3.
//  Copyright © 2015年 leo. All rights reserved.
//

#import "KKCommodityItemList.h"

@implementation KKCommodityItemList

- (void)appendItemsWithArray:(NSArray *)itemArray {
    
    [super appendItemsWithArray: itemArray withItemClass: [KKCommodityItem class]];
}

@end


@implementation KKCommodityItem

- (instancetype)copyWithZone:(NSZone *)zone {
    
    KKCommodityItem *copyItem = [[KKCommodityItem allocWithZone: zone] init];
    
    copyItem.kk_identifier = [self.kk_identifier copy];
    copyItem.kk_name = [_kk_name copy];
    copyItem.kk_inventory = [_kk_inventory copy];
    copyItem.kk_purchasePrice = [_kk_purchasePrice copy];
    copyItem.kk_price = [_kk_price copy];
    copyItem.kk_pictures = [_kk_pictures copy];
    
    copyItem.kk_capacity = [_kk_capacity copy];
    copyItem.kk_sales = [_kk_sales copy];
    
    return copyItem;
}

@end